<%@ page contentType="text/html;charset=UTF-8"%>
<%@ page import="java.io.*"%>
<%@ page import="java.util.*"%>
<%@ page import="java.text.*"%>
<%@ page import="com.gzgi.framework.*"%>
<%@ page import="com.gzgi.framework.util.*"%>
<%@ page import="com.gzgi.framework.context.*"%>
<%@ page import="com.gzgi.framework.resource.*"%>
<%@ page import="com.gzgi.workflow.jbpm.model.Product"%>
<%
     SqlMapManager sqlMapManager = (SqlMapManager)ContextFactory.getBean("sqlMapManager");
	 java.util.Random r = new java.util.Random();
	 Product p = new Product();
	 p.setProductId(UUID32.getUUID());
	 p.setProductDate(new Date());
	 p.setCreateDate(new Date());
	 p.setProductName("product_"+r.nextInt(1000000));
	 p.setProductCode("product_"+r.nextInt(1000000));
	 p.setPrice(r.nextInt(9999));
	 p.setQuantity(r.nextInt(100));
     sqlMapManager.insertObject("insertProduct", p);
 %>
